/******************************************************************************
 * myMutex.h - 
 * 
 * Copyright 2011-2016 Guangzhou Timetop Electronics Technology Co.,Ltd.
 * 
 * DESCRIPTION: - 
 *     -
 * modification history
 * 
 * 01a, 21apr2012, Mr. Huanbiao Xie  written
 *
 ******************************************************************************/
#ifndef _MYMUTEX_H_
#define _MYMUTEX_H_

//#include "windows.h"
class CMyMutex
{
public:
	CMyMutex();
	~CMyMutex();
	bool Lock();
	bool UnLock();
	bool WaitMutex(int);
	bool ReleaseMutex();
	int GetTimePc();
	int GetState();
private:
	int m_iMutex;
	DWORD m_dwTime[5];
	int m_iTimePc;
};

extern CMyMutex g_CMsgMutex[3];

#endif  /* _MYMUTEX_H_ */


